<?php
/**
 * @filesource							BookAction.class.class.php
 * @desc								墓地预订控制器类
 * 
 * @author								houyining
 * @copyright							hou.yining@gmail.com
 * @date								2011-05-06
 */

class BookAction extends CommonAction{
	public function index(){
		$crumb_info = array(
			array('uri' => '__URL__', 'title' => L('booking_manage'), 'sort' => C('CRUMB_DEFAULT')),
			array('uri' => '__URL__/index', 'title' => L('list_booking'), 'sort' => C('CRUMB_LAST')),
		);
		
		$this->_mergeCrumbInfo($crumb_info);
		$this->_action_link = array(
			array('uri' => '__URL__/add', 'title' => L('add_booking')),
			);
		
		$this->assign('crumb_info', $this->_crumb_info);
		$this->assign('action_link', $this->_action_link);
		parent::index();
	}
	
	public function add(){
		$crumb_info = array(
			array('uri' => '__URL__', 'title' => L('booking_manage'), 'sort' => C('CRUMB_DEFAULT')),
			array('uri' => '__URL__/add', 'title' => L('add_booking'), 'sort' => C('CRUMB_LAST')),
		);
		
		$this->_mergeCrumbInfo($crumb_info);
		$this->_action_link = array(
			array('uri' => '__URL__/index', 'title' => L('list_booking')),
			);
		
		$common_model = new CommonModel();
		$creater_name = $common_model->getCurrentOperatorName();
		
		$this->assign('creater_name', $creater_name);		
		$this->assign('crumb_info', $this->_crumb_info);
		$this->assign('action_link', $this->_action_link);
		parent::add();
	}
	
	public function show(){
		
	}
	
	public function edit(){
		
	}
}
?>